<?php
/**
 * Created by PhpStorm.
 * User: luzhaoyang
 * Date: 2017/8/7
 * Time: 10:51
 */

class Doc extends Base_Controller
{
//    public $_docroot = "http://localhost:8888/nldou_web";
    public $_docroot = "https://www.nldou.com";
    public function __construct()
    {
        parent::__construct();
    }
    public function index()
    {
        $this->load->view('doc',array('docroot'=>$this->_docroot,'type'=>'founder'));
    }

    public function founder()
    {
        $this->load->view('doc',array('docroot'=>$this->_docroot,'type'=>'founder'));
    }
    public function hardfun()
    {
        $this->load->view('doc',array('docroot'=>$this->_docroot,'type'=>'hardfun'));
    }
    public function world()
    {
        $this->load->view('doc',array('docroot'=>$this->_docroot,'type'=>'world'));
    }
    public function product($type)
    {
        $data=array("type"=>"","title"=>"","videoid"=>"","imgrow1"=>array(),"imgrow2"=>array(),"mp4hd"=>"","docroot"=>$this->_docroot);
        switch ($type){
            case 'tudou':
                $data["type"]="tudou";
                $data["title"]="土豆快跑";
                $data["videoid"]="9031868223144249714";
                $data["imgrow1"]=array("tudou1.jpg","tudou2.jpg");
                $data["imgrow2"]=array("tudou3.jpg","tudou4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/32166b439031868223144249714/v.f30.mp4";
                break;
            case 'rainbowpark':
                $data["type"]="rainbowpark";
                $data["title"]="彩虹乐园";
                $data["videoid"]="9031868223147466200";
                $data["imgrow1"]=array("rainbowpark1.jpg","rainbowpark2.jpg");
                $data["imgrow2"]=array("rainbowpark3.jpg","rainbowpark4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/1dd1e93d9031868223147466200/v.f30.mp4";
                break;
            case 'doudouteam':
                $data["type"]="doudouteam";
                $data["title"]="逗逗小分队";
                $data["videoid"]="9031868223134981323";
                $data["imgrow1"]=array("doudouteam1.jpg","doudouteam2.jpg");
                $data["imgrow2"]=array("doudouteam3.jpg","doudouteam4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/566ca0e19031868223134981323/v.f30.mp4";
                break;
            case 'getten':
                $data["type"]="getten";
                $data["title"]="加10赛";
                $data["videoid"]="9031868223147465835";
                $data["imgrow1"]=array("getten1.jpg","getten2.jpg");
                $data["imgrow2"]=array("getten3.jpg","getten4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/1dd176ca9031868223147465835/v.f30.mp4";
                break;
            case 'duckfarm':
                $data["type"]="duckfarm";
                $data["title"]="小鸭农场";
                $data["videoid"]="9031868223144400650";
                $data["imgrow1"]=array("duckfarm1.jpg","duckfarm2.jpg");
                $data["imgrow2"]=array("duckfarm3.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/367367579031868223144400650/v.f30.mp4";
                break;
            case 'rabbitfamily':
                $data["type"]="rabbitfamily";
                $data["title"]="小兔一家亲";
                $data["videoid"]="9031868223144400516";
                $data["imgrow1"]=array("rabbitfamily1.jpg","rabbitfamily2.jpg");
                $data["imgrow2"]=array("rabbitfamily3.jpg","rabbitfamily4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/367362989031868223144400516/v.f30.mp4";
                break;
            case 'linkfun':
                $data["type"]="linkfun";
                $data["title"]="分类连连看";
                $data["videoid"]="9031868223147516456";
                $data["imgrow1"]=array("linkfun1.jpg","linkfun2.jpg");
                $data["imgrow2"]=array("linkfun3.jpg","linkfun4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/1fcca0869031868223147516456/v.f30.mp4";
                break;
            case 'miao':
                $data["type"]="miao";
                $data["title"]="寻找喵喵";
                $data["videoid"]="9031868223144400889";
                $data["imgrow1"]=array("miao1.jpg","miao2.jpg");
                $data["imgrow2"]=array("miao3.jpg","miao4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/367370459031868223144400889/v.f30.mp4";
                break;
            case 'imglink':
                $data["type"]="imglink";
                $data["title"]="图形接龙";
                $data["videoid"]="9031868223144198077";
                $data["imgrow1"]=array("imglink1.jpg","imglink2.jpg");
                $data["imgrow2"]=array("imglink3.jpg","imglink4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/301b13c89031868223144198077/v.f30.mp4";
                break;
            case 'face':
                $data["type"]="face";
                $data["title"]="表情帝";
                $data["videoid"]="9031868223144552081";
                $data["imgrow1"]=array("face1.jpg","face2.jpg");
                $data["imgrow2"]=array("face3.jpg","face4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/39240a1d9031868223144552081/v.f30.mp4";
                break;
            case 'kring':
                $data["type"]="kring";
                $data["title"]="指环王";
                $data["videoid"]="9031868223144451465";
                $data["imgrow1"]=array("kring1.jpg","kring2.jpg");
                $data["imgrow2"]=array("kring3.jpg","kring4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/1fcca92c9031868223147516669/v.f30.mp4";
                break;
            case 'gogobang':
                $data["type"]="gogobang";
                $data["title"]="GOGO碰";
                $data["videoid"]="9031868223147516669";
                $data["imgrow1"]=array("gogobang1.jpg","gogobang2.jpg");
                $data["imgrow2"]=array("gogobang3.jpg","gogobang4.jpg");
                $data["mp4hd"]="http://1254188021.vod2.myqcloud.com/28733ee7vodtransgzp1254188021/38c920e19031868223144501775/v.f30.mp4";
                break;
        }
        $this->load->view('doc_goods/pre',$data);
    }

    public function contact()
    {
        $this->load->view('contact',array('docroot'=>$this->_docroot));
    }
}